package com.ruoyi.project.modules.interfaceinfo.service;

import java.util.List;

import com.ruoyi.project.modules.interfaceinfo.domain.InterfaceInfo;
import com.ruoyi.project.modules.interfaceinfo.domain.VirtualUsage;
import com.ruoyi.project.modules.interfaceinfo.request.VirtualUsageReq;
import com.ruoyi.project.modules.interfaceinfo.vo.FieldSourceVo;

/**
 * 虚拟用况接口Service接口
 * 
 * @author smallrain
 * @date 2021-10-29
 */
public interface IVirtualUsageService 
{
    /**
     * 查询虚拟用况接口
     * 
     * @param id 虚拟用况接口主键
     * @return 虚拟用况接口
     */
    public VirtualUsage selectVirtualUsageById(Long id);

    /**
     * 查询虚拟用况接口列表
     * 
     * @param virtualUsage 虚拟用况接口
     * @return 虚拟用况接口集合
     */
    public List<VirtualUsage> selectVirtualUsageList(VirtualUsage virtualUsage);

    /**
     * 新增虚拟用况接口
     * 
     * @param virtualUsage 虚拟用况接口
     * @return 结果
     */
    public int insertVirtualUsage(VirtualUsage virtualUsage);

    /**
     * 修改虚拟用况接口
     * 
     * @param virtualUsage 虚拟用况接口
     * @return 结果
     */
    public int updateVirtualUsage(VirtualUsage virtualUsage);

    /**
     * 批量删除虚拟用况接口
     * 
     * @param ids 需要删除的虚拟用况接口主键集合
     * @return 结果
     */
    public int deleteVirtualUsageByIds(String ids);

    /**
     * 删除虚拟用况接口信息
     * 
     * @param id 虚拟用况接口主键
     * @return 结果
     */
    public int deleteVirtualUsageById(Long id);

    int saveVirtualUsage(InterfaceInfo interfaceInfo);

    List<VirtualUsage> selectVirtualUsages(VirtualUsage virtualUsage);

    int saveVirtualUsageNew(VirtualUsageReq virtualUsageReq);

    void updateInterfaceSort(List<VirtualUsage> virtualUsages);

    List<FieldSourceVo> selectFieldSource(Long id, Long processBranchId);

    int updateVirtualUsageModel(VirtualUsage virtualUsage);
}
